home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
LANG
/
C
/
LIB
/
UNIXLIB37B
/
!UnixLib37
/
src
/
unix
/
c
/
getdtables
< prev
next >
Wrap
Text File
|
1996-11-09
|
1KB
|
37 lines
/****************************************************************************
*
* $Source: /unixb/home/unixlib/source/unixlib37/src/unix/c/RCS/getdtables,v $
* $Date: 1996/10/30 21:57:16 $
* $Revision: 1.1 $
* $State: Rel $
* $Author: unixlib $
*
* $Log: getdtables,v $
* Revision 1.1 1996/10/30 21:57:16 unixlib
* Initial revision
*
***************************************************************************/
static const char rcs_id[] = "$Id: getdtables,v 1.1 1996/10/30 21:57:16 unixlib Rel $";
/* unix.c.getdtables. Implementation of getdtablesize ().
Written by Nick Burrett, 13 October 1996. */
#include <limits.h>
#include <unistd.h>
/* Return the maximum number of file descriptors
the current process could possibly have. */
/* A stub function that really should take into account the
actual number of files open on RISC OS and determine whether
that OPEN_MAX files can still be opened. Also should take
into account getrusage (). */
int
getdtablesize (void)
{
return OPEN_MAX;
}